package com.iqiyi.pps.epg.web.timer;

import com.iqiyi.pps.epg.core.service.program.ProgramService;
import com.opensymphony.xwork2.util.logging.Logger;
import com.opensymphony.xwork2.util.logging.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by lemuelwang on 2015/11/9.
 */
public class ProgramRecycleTrigger {
    private static Logger logger = LoggerFactory.getLogger(ProgramRecycleTrigger.class);

    @Autowired
    private ProgramService programService;

    public void task() {
        logger.info("[ProgramRecycleTrigger] task start");
        programService.updateRecyclablePrograms();
        logger.info("[ProgramRecycleTrigger] task end");

    }


}
